<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use yii\helpers\Html;
use common\components\extenders\MenuManage;
use common\components\helpers\Fun;
LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>

<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <!--/*列表*/-->
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"  data-tablesaw-mode="swipe" data-tablesaw-minimap >
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?=\Yii::t('zhtfrontend','课程');?></th>
                <th><?=\Yii::t('zhtfrontend','老师');?></th>
                <th><?=\Yii::t('zhtfrontend','家长电话');?></th>
                <th><?=\Yii::t('zhtfrontend','学生');?></th>
                <th><?=\Yii::t('zhtfrontend','上课次数');?></th>
                <th><?=\Yii::t('zhtfrontend','金额');?></th>
                <th><?=\Yii::t('zhtfrontend','类型');?></th>
            </tr>
            </thead>
                <?php foreach($data as $item):?>
                    <tr>
                        <td colspan="7" style="text-align: left">机构：<?=$item['name']?></td>
                    </tr>
                    <?php if(!empty($item['arr'])) : ?>
                   <?php foreach ($item['arr'] as $arr) : ?>
                    <tr>
                        <td><?=$arr['goods_name']?></td>
                        <td><?=$arr['teacher_name']?></td>
                        <td><?=$arr['tel']?></td>
                        <td><?=$arr['student_name']?></td>
                        <td><?=$arr['count']?></td>
                        <td><?=$arr['lesson_price']?></td>
                        <td><?=$arr['price_name']?></td>
                    </tr>
                    <?php endforeach;?>
                        <tr>
                            <td colspan="7" style="text-align: right">总上课次数:<?=$item['counts']?></td>
                        </tr>
                    <?php endif;?>
                <?php endforeach?>
        </table>
    </div>
</div>










